package com.demo.mapper;

import com.demo.bean.PersonMysql;
import com.demo.bean.Teacher;
import com.demo.bean.Teacher_perosn;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface TeacherMapper {
    @Select("select * from teacher where id = #{id}")
    Teacher getTeacher(@Param("id") int id);

    //一个学生对应一个老师
    List<PersonMysql> getPersonTeacherSelect();

    //一个老师包含多个学生
    Teacher_perosn getTeacherPerosn();
}
